import request from '../../utils/request.js'

// 收藏指定视频
export function collectTargetVideo(videoId) {
    return request({
        url: '/video/collectVideo?videoId=' + videoId,
        method: 'post'
    })
}

// 当进入视频时 获取当前视频信息
export function getVideoInfoById(videoId) {
    return request({
        url: '/video/getVideoInfoById?videoId=' + videoId,
        method: 'get'
    })
}

// 当进入视频时 获取ai推荐的视频列表
export function getAiRecommendVideo(videoId) {
    return request({
        url: '/aiChat/getAiRecommendVideo?videoId=' + videoId,
        method: 'get'
    })
}

// 获取当前视频是是否被用户收藏了
export function getVideoCollectState(videoId) {
    return request({
        url: '/video/getVideoCollectState?videoId=' + videoId,
        method: 'get'
    })

}

// 停止实时语音转写
export function stopRealTimeASR() {
    return request({
        url: '/aiChat/stopRealTimeASR',
        method: 'get'
    })
}